﻿namespace IPlugin
{
    /// <summary>
    /// 远程调用返回
    /// </summary>
    public class RpcResponse
    {
        /// <summary>
        /// 请求唯一ID
        /// </summary>
        public string RequestId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; } = false;
        /// <summary>
        /// 方法
        /// </summary>
        public string Method { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
        public override string ToString()
        {
            return $"RequestId:{RequestId},DeviceName:{DeviceName},Method:{Method},IsSuccess:{IsSuccess},Description:{Description}";
        }
    }
}
